﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Web_Oto.Bases;
using Web_Oto.Data;

namespace Web_Oto.Business
{
    public class SeoBus : busObject
    {
        #region Constructor

        public SeoBus()
        {
            m_objDAL = new SeoDal(connectionstring, connectiontype);
        }

        public SeoBus(string connectionString)
            : base(connectionString)
        {
            m_objDAL = new SeoDal(connectionstring, connectiontype);
        }

        public SeoBus(string connectionString, string connectionType)
            : base(connectionString, connectionType)
        {
            m_objDAL = new SeoDal(connectionstring, connectiontype);
        }

        private SeoDal m_objDAL;

        #endregion

        #region methods
        public IList<SEO> GetSeos()
        {
            return m_objDAL.GetSeos();
        }

        public SEO GetSeoPage(string pageName)
        {
            return m_objDAL.GetSeoPage(pageName);
        }

        public int Update(SEO seo)
        {
            return m_objDAL.Update(seo);
        }
        #endregion
    }
}
